package com.service;

import org.apache.ibatis.session.SqlSession;

import com.dao.Archive;
import com.dao.Logdao;
import com.pojo.Logpojo;
import com.util.MySqlSessionFactory;

public class LogdaoService {

	SqlSession sql = MySqlSessionFactory.getSqlSession();
	Logdao dao = sql.getMapper(Logdao.class);

	public void add(String user_id, String operation, String date,
			String archive_id) {
		dao.add(user_id, operation, date, archive_id);
		sql.commit();
	}
}
